package com.kukudexin.demo.interceptor;

import com.jfinal.aop.Interceptor;
import com.jfinal.aop.Invocation;

/**
 * @author: 德鑫
 * @version:
 * @since: 2021/4/26
 */

/**
 *拦截器从上到下依次分为Global、Routes、Class、Method四个层次，Clear用于清除自身所处层次以上层的拦截器。
 */
public class AssInter implements Interceptor {
    @Override
    public void intercept(Invocation inv) {
        System.out.println("AssInter Before method invoking");
        inv.invoke();
        System.out.println("AssInter After method invoking");
    }
}
